Changed the hardcoded SQLite3 DB support for SQLAlchemy.
Removed unneeded functions and arguments.