Fix buglet for BED input

The code was using the end coordinate instead of the start one when looking for the probe in the DB.