fix what to insert in db