registration db code implemented