Removed dependency for MongoJS, replaced with Mongoose. Created model for Listing. Changed function to save database indexes, now automagically disconnects database when all iterations of saving are done.