General purpose RDBMS abstraction layer