Added dependency injection of database driver.
Added test environments.
Moved database connections to drivers.
Moved drivers to db