Command refactor

Refactored the project so that commands.go is in its own sub-package, and there's also a db sub-package which keeps the redis pool as well as some other helper functions.
I think we should move this inside the channel range for loop and just Put it on each iteration that didn't continue to resolve your TODO