refactor userdb to interface.(fix issue#7)
Merge pull request #8 from lpy/issue7

refactor userdb to interface.(fix issue#7)