Lightweight relational database abstraction layer