datatypes were changed to their appropriate datatypes and the revision of fetchProfileInfo function in accordance to the changes in db (inner join)