added in some stuff for connecting to a real mongo db