They are prayers. And everybody except moderns for whom God does not matter knows that the primary addressee of prayers is God. Whatever else these Psalms might have done to those who listened (and I do not doubt that they functioned at that level too), they brought the puzzlement and rage of the oppressed over injustice into the presence of the God of justice who is the God of the oppressed (Miller 1994, 106ff.).