Reflecting relational databases into client-rich web apps