refactoring dbAccessor
add charge, get charge by tie, get chargeCount
Merge remote-tracking branch 'origin/master'