Fixed so that we use the same order for columns as they are in Postgresql.
Added validation of interval
New version