chore: do not talk to DB if not needed