Fix bug in accountDB