Programatic database exporter