Added mysql reconnection to true, and fixed bad relationships in usuarios and compartidos table.