This function will be loop and every loop key1 and key2 will change... the problem is the database results which is an array will not get every data of the keys it will only record the last data.
GettingData: function(key1,key2){
var list=[];
console.log('Getting Data of '+key2);
var ref = firebase.database().ref('/users/'+key1+'/products/'+key2).orderByKey().equalTo('name');
ref.on('child_added', function(data) {
console.log(data.val());
list.unshift(data.val());
this.databaseresult = list;
console.log('Productdata of '+ key1 +' is LOADED');
console.log('pushing to array '+list);
console.log(this.databaseresult);
this.$.results.products = this.databaseresult;
}.bind(this));
},