Extracting data from custom databases