Update lib/db.class.php