Add elements to a shelve database