inserting database not completed