change mysql & mysqli base to generic model
at least not error
fix search