Added SQL for view and Entity WallPost