Merge pull request #7 from joshualande/devbranch

Devbranch
Better caching code if DB does not exist
Better caching code if DB does not exist
better flag