gets a postgis tablename from a mapfile with the given layer name, may not work depending on your mapfile layout