bug fix in database api for extractors