Simplified the DatabaseConfig class using the @Value annotation.
Updated the UseController class using @Autowired on the UserDao class.