Updating beans + query.