[opf] decoupling mapping and class metadata.
[tests] proper select for delete query