added integration test
initial database support