Successfully Added Jquery Data to the Database

Added Data sent from Jquery to the Database. I still have to fix some
issues that are arising after sanitizing the String. I will also make
sure empty posts are not made (one line of code). Also, on logout, the
user is redirected to the home page.