Reverting to all sqlite3 (working version)