Add dbid to mapping