[task] update ddl and add script for migrating db from 0.16 to 0.17
Merge pull request #142 from dacrome/OSNG-334

[task] update ddl and add script for migrating db from 0.16 to 0.17