db read optimizations