Changed to mysql2 instead of sqlite.