Added comments of methods aboutdatabase operations in db.php