integration with db