Merge pull request #63 from mastercoin-MSC/database-staging

Sync to Master
Merge pull request #64 from mastercoin-MSC/database-staging

Sync to Master
Refactor db commands to use sqltools library
fix spacing
Merge pull request #945 from achamely/dbstaging

Refactor db commands to use sqltools library