Added session and cache for created objects to make ORM functionality in future.