Added the updated SQL

Also forgot to edit the creat-ticket to reflect the changes with the
new Log. column in the database.