Implemented integration tests for db adapter