updated library sync to work on existing books