Let’s use existing heroku env variables
This looks like a better way to serialize
Catch exception if the username is new
Tidy up imports