Using decorator for data storing queries