added mssql statement functionality