Refactor util modules to reduce complexity
This MR moves database and config into their own modules to reduce complexity. It also moves the setup command into commands and removes the static_files module as it was unneeded.
This MR moves database and config into their own modules to reduce complexity. It also moves the setup command into commands and removes the static_files module as it was unneeded.