Fix EE 2.5.4 issue where security_hashes schema

Seems like EE 2.5.4 changed the schema for the security_hashes table.
Merge branch 'security-hashes-bug'