Update newaccountbg.m

154-180 changes to insert user into database. I am not sure if this works? but I know that it is probably decent.