Add useful features and great sql requests

With pretty sql jointures !