working! Now I only have to create the query dinamicaly