added db storage and first integration tests