have all the database insertion working