fixing linked database.model.class.php