protects database in Saver
protects id in classes