Implements the Repository pattern on top of FoundationDB