Using a Database for Localization