Made function which adds values to database.
Entries only exist for 10 seconds (using cql: TTL).