Declarative Languages And Systems For Transparency, Performance And Scalability In Database Analytics