Implemented registration module with db changes

Implemented registration module with db changes