Check database existence method and throwing exception from MYSQLI->connect