got database connectivity working