User data is now saved to the database rather than localStorage