add mongodb configuration

- plus, ignoring swap files