updated for oils 0.3.x and above. Removed mongodb dependency