Updating sql to support Sql Server

enabled column is mapped as BIT datatype in sql server so sql needs
updating to reflect new  syntax.