- modified database.class.php