Compare and Sync databases in ZF2