fix reg investor redirect and connect db

fix reg investor redirect and connect db