* all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition