adding into database fix