Actually, you probably don't really need to return anything unless you plan on having multiple database connections. And I assume you are not trying to use $dbconn elsewhere in your code.
The problem is that $dbuser,$dbpassword and $dbname are not in scope and thus cannot be used by the function.
You need to pass them as arguments or use
global $dbuser; inside of the function.
Now it may be that mysql_config.php is supposed to take care of these values. Try echoing out $dbuser as include files can be a bit tricky inside of functions.