[yanan] finish multi db function