Replaced sqlite3 with mysql