more generalized version of ruby scraper (move db logic to plugin)