deferred promises work but not db
got register to work. screw promises, callback ftw