java get and update methods for mongoDB

now we can update a list-entry in the database from either a (java) List
or array