added persistence with mongodb