Fixing bug in db.inc and db_class.php