Coded merger logic, reseting db now.