Handle closed post logic in db