refactored the function map to get first mongo query working before i
crash for the night