Add refresh method
Fix balance task
Refactor operations with new db API