database connectivity working