update mongo query to use new data types