move data to db