ddl and db update script for 1.17