how to create a stored procedure and insert data into a table