Simple database abstraction layer.