Seems like all the `first` -> `db/normalize-keys` could go into a fn somewhere that takes the db and the query as args.