added check for unknown db