fixed monetdb's gid to be the same with its id.