added security functions to entities
working on security functions
added SaveChanges method to Entities interface