Use Postgres range types when available.
Add merge utility.
Parametrized the name of valid field.
Merge remote-tracking branch 'origin/master'
Fix calculating overlap.