moved posts into db