Updated forums.py

Removed extra whitespace, orgamized imports, and updated queries that
used db style instead of ndb