merge two database