Adding debug mode and fixing 2 minor bug: $db=>$database and wrapping Credis_Client into Credis_Sentinel