Saving bookmarks to the database, basic merging of remote and local data