add logging for when no connection or mongo error