get db cfg settings and connect