Working on PSQL intervals.