TrustedDB is a prototype outsourced database leveraging tamper-proof trusted hardware to enable SQL queries with privacy and regulatory compliance, overcoming expressiveness limitations found in existing software-based cryptography. It offers cost-effective query processing by combining trusted hardware with unsecured server resources, resulting in low transaction costs and improved performance. The system architecture includes modules for query parsing, optimization, and execution, allowing sensitive operations to be securely handled while maximizing the use of inexpensive resources.