Smart datalayer management and templating - an ORM for complete control freaks