Issue:
[FEATURE] Implement `EventInterface` for `MockDb`

Spin out from https://github.com/juspay/hyperswitch/issues/172. Please refer to that issue for more information.

Resolution:
<think>
PR Context:
- Title:  feat(db): implement `EventInterface` for `MockDb` 
- Merged: 2023-05-31T15:21:48Z
- Files changed: 2 files
- Commits: 4 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->


### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!-- 
Provide links to the files with corresponding c
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(db): implement `EventInterface` for `MockDb`  (#1289)
Co-authored-by: Pavlo Kushneryk <pavlo.ku
Files to modify:


**crates/router/src/db.rs**
  Modify existing code

**crates/router/src/db/events.rs**
  Modify existing code