fix for cp in db