Implement phase one registration and saving inside database