Added integration tests for the Database API