Postgresql Range Operators Functions In Javascript