String to int corrections to query mongo data