Add error handler in getNextSequence

Ensures errors are returned to the callback rather than halting the app process
Minor update to fix typo
Merge pull request #30 from jksdua/patch-1

Add error handler in user-dao.getNextSequence