How can I differenciate between different clients and databases?  

You can use different directories by using:
&client
&database
in the designation of your directories in your GuiXT profile.Or you can use the same scripts and differentiate within a script by using:
if Q[database] and Q[client]
...
endif