add function link db (not tested)