move Connection::getMetadata to TableMapper