Fixing a bug with not incrementally adding to post count when creating a thread and a new SQL file