Haha you're describing implementing an ORM! It's essentially that: a unified interface over multiple DB adapters.