enhanced mysql template