cleaned up middletier even more, added stackable queries to get request