Refs #32 - fix undefined variable: target
coding style
Fixes #32 - drop database if no cache file exists (initially)