Fixed controller to return only mongo objects. Still need to get database info from resources rather than hardcoded.