Export relational databases as flat files