Minor changes inside class.database.php - e.g. add missing comments.