Synchs master and slave db