Fix reading geometries from MySQL databases