fixed issues with getting correct userid from response objects and querying database correctly
Merge branch 'master' of https://github.com/mdko/cs360-group-project