Add database abstraction layer around sqlite