small refactoring of RecordDAO to using method get to retrieve entity from DB