Added MSSQL support and command line flags