Expendet createProfile code

- Table needs to be added to the database. Can't be debugged as it is
now