TemplateMetaprogramming an Object Interface to Relational Tables