restore changes to database class