added caching of specified databases (defaulted to megatest.db)