Select the minimum amq_latest_send time to avoid issues with postgres & oracle

Fix #92