I changed some sql functions which are noted in the comments above each function that are new or if I used one that has already been added to the sql master I also am adding the editprofile and profilepage php files