put data in db