Made it work with SQL server
extra files added