Reworked the post creation SQL.