Because kodi cannot decrypt any of your files, you would need to have a share on your server where the database is, that is exposing the unencrypted media files.
OR YOU MIGHT BE ABLE TO USE THIS APP. It is designed to allow you to stream video from a Cryptomator-encrypted vault.
Kodi can access different file formats such as SMB and WebDAV.
What I do here is I use a program called Rclone to “serve” my files over to Kodi. I chose webdav but you can use any of these supported by kodi
rclone serve [opts] [flags]
rclone serve [command]
Available commands:
dlna Serve remote:path over DLNA
docker Serve any remote on docker’s volume plugin API.