finished swapping out mongojs for mongoosejs to communicate with database.