change the head line of the register and event registration

and add function to database