Replace mysql with sqlite3