added connection to dbs