added basic user authentification and mongoDb support