Fixed bug for synchronisation database.(Spike)