connected to db.