RESOLVED
---------
1. A "database abstraction class" is used to set certain frequently used queries up. Do a google search for "php database abstraction class" and you will find many examples.
2. The $config["something"] var is set just as i suggested.
$config["something"] = "something";