Started badge creation

- Moved the event listener to its own package
- Started work on creating badges in the database