Fixed database name in template