Change to sqlite3 from mysql