switched to mongodb and removed junk code