changed concat method because SQL 2008 compatibility and table create method