declare the global $SDB connection earlier