refactor: add decorator function to handle database connection
refactor: add decorator function to handle database connection

brianquach/udacity-nano-fullstack-tournament,brianquach/udacity-nano-fullstack-tournament