Implemented basic SQL cache.

To save file system reqeuests for each query.