switched to postgresql instead of sqlite3