Fix syntax error for title memorial creation sql