Fixed pubKey types to always receive a string in the Database