replace sqlite with mysql