added cache for db
Merge pull request #15 from gtachev/gtachev

added cache for db