Push #10

Have the stuff for the profile table and adding profiles to the database but it isn't working at the moment. Taking a quick break and coming back to it.