Move posts to db; create appointments logic