Generalise methods in class DataAccessService to work with all database entities