Allow passing a map database to `register`