Added casting to ST_Transform function, organized imports