refactored querying persistables into common method