DB: source formatting, updated readme

- Added some comments and source formatting for export script.
- Updated readme file.