Implement update method
Fix runtime error when calling readPreferencesForID method

The query condition was not updated after keyword "WHERE" was made necessary
when querying.