Use new database API for fetching locations