Refactored vendor specific database operation behind a strategy and added unit tests.