Fixed database connectivity