Caching database
Back to using string not ptr
Fixes #40