Clean up dictionary to commit too mongo