AJAX and jQuery writing to the database