replaced dummy data with mongodb