updating table to search mongo for date ranges instead