move posts into db