added mongodatabase and implemented user management of admin page