pass connection to user creation function