Added the ability to post and retrieve the threads through SQL