Changed db from sqlite3 to mysql