put data in database