adapt location manager to work with mongodb