Changed db.create() for types