database.py: Forces using SingletonThreadPool for SQLite.
database.py: Abstracts the SQLAlchemy logic.