small doc change plus error handling for when a db is passed that doesn't exist