Remove dependencies on SQLite3 and model