Fix detail bug. Reduce db access in AccountEntries#initialize.