update latest sql scripts for DB
updated sql
Merge pull request #770 from tonyrd/development

update to latest sql scripts