trying to insert in database