Removed unnecessary use statement.
Dependency injection for database adapter factory.
Fixed bug in unit test.
Style fix.
Removed unnecessary use statement.
Style fixes.