Updated SQL create script for latest database structure