Changed the way that user variables are stored in the database