First attempt at db access abstraction with mock db