Added dbtemplates code with some tests and removed Site framework