postgis and rubocop fixes