set exit code nicely
Add option to export database