Added database code to register page (Not compiling)