Compare and synchronize SQL Database Data