Using PostgreSQL to Manage Raw and Reduced Data Flows from Hectospec on the 6.5m MMT