improve error message if db not found