fix db name in template