added has_gid methods for models with a "gid" column