Can I use newer version of kodi while using 15.1 with mysql?

I’ve got 6 or so Fire TV boxes running Kodi 15.1. I use mysql for a centralized database that allows for watch flags and pause play. I remember something about having to use the same kodi version on all boxes that would share the mysql database.

I know have a raspberry pi 3 that I want to put Kodi on but the easiest way is to use noobs, openelec or osmc. They will all put a newer version of kodi which I believe is going to be a problem.

Question:

1. what is the newest version of kodi that will work with my 15.1 mysql setup?
2. if I have to install an OS on the pi then install 15.1 what OS should I use?

Thanks,

Roveer