Implemented Deleted field in database to all classes