replace sqlite by mysql