made changes to how dbauth works. requires extra changes