Refactored the Db.cs class to implement DRY and increase performance. Added exception handling in the event of a failed endpoint, and added default return for all methods thanks to DRY.