FIX: added PilotDB to clients to avoid many connections
FIX: minor bugfixes