Implementing database test helpers