store variables in the database