merge chat database