Simplify 'fetch all' database functionality