Adding a domain field and optimized database creation script for mssql-2005.