#370 Replace MySQLTemplates usage