Refactored budget dao.