tried working at the db abstraction layer below entities. modified some db_query functions to see if it works.