Add error handler in user-dao.getNextSequence

Ensures errors are returned to the callback rather than halting the app process