Added support for string or number ids
* This allows for serialized ids which are numbers in postgres,
  as well as uuids in leveldb