Fix for failing QA:
- On mysql, no millisecond precision, hence test was failing
- On postgres: need to add specific mapping for query