Added a way to store db in mongo instead.  Still doesn't read from it yet.