In the schema, in stored procedure archiveProject the fact that the 0/1 result was being returned AS archivedResult not result seeed to be causing issues, changed for the sake of consistency if nothing else.