working version. syncing both tables to
server