Added work with mongodb