got the db insertion working