adding database intergration