WIP: save pastures to disk & getStructure for mysql tables