fixed database connectivity issues