DB config file is no longer needed for testing environment with the new .env file setup.
Tidied up UserController a bit.