Changed the published field of the taskInsertAndUpdate stored procedure from varchar into bit and also made changes to the ModelFactory to properly convert bit value into boolean.

Closes #1025