refactor db access when updating podcasts