Minor fixes to prevent exceptions

Missing 'id' column prevented inserting a new MWOAuthConsumer.
Get signature method by get_class

Change-Id: Ibc60d5709c00ba60416356e8459ab51d6282451a
Merge "Minor fixes to prevent exceptions"