Worked on the insert_into_db routine