Database/service abstraction layer