1. You don't.
Please read this:
https://www.mobileread.com/forums/sh...d.php?t=119175
Also: Having an open calibre library on an active network share is strongly discouraged in the FAQ. Use the NAS to backup the calibre library, but not to run it from. It may seem to work for some time, but your library may slowly become corrupted without you realizing it until it is too late.
2. No idea.