SQLSRV db script fixed