Add: Moved DB function

- Added DB Class
- Updated get_badges with new DB Class