Script to create tables with correct data types in SQL Server 2016 and above. Search table not included.