A simple database abstraction layer