Add support for ObjectId primary keys.
Fix Travis bug with database config.