Use :eval-fn of db when calling deref