Javascript Database Syncrhonisator