added ability to dump data from db in a predictoable manor