Database fix, minor changes, Register (server)