changes on database.class