Integrating with db connection