updated dbscript.sql with latest database structure