make mongo optional