fixed missing template parameter
fixed MySql compatibility
fixed results template