added ref_code to user table