Improved database abstraction layer for the Backend