Cache database query data
Improve query