Added support for mouse ID database to eliminate redundant query