replace sqlite3 with mysql