Using mongodb database instead of static values.