Changed sql query syntax
Fixed adding a comment to database