Find database used by job