Minor cleanup of export util
Default permission for db 0664
First pass at a simple CLI