added connection to db