adds value to a database