scatter2db: cleaned up code.
Scatter2DB: cleaned up