Store vars in a database