add serverside sync functionality

TODO: playlists not working 100% as _id's change when inserted