fixed db from throwing exception when saving with a mule
removed unnecessary code