Implemented caching mechanism new by using sqlite db.