Added generic method for retrieving records by Id, and started using it in various methods