Fixed registration and auth db