fix for renaming model to singular, uniquing the hex digest, and not using sql reserved word 'key'