This repository will hold functions and query for generating ranges in PostgreSQL database