getFuncties(): query with join, remove additional getOne