add constraint and index to tables as in DM
Merge pull request #5 from AODN-ETL/fix_AsInDM

add constraint and index to tables as in DM