integrataion with db