Db: Remove dependence of AbstractAutoNewConfig
Bridge: Add getter method for $profile
Db: Optimize and only allow single primary key column

Also trigger_error was replaced by throw exception statement.
Db: Remove test dummy for class CodeDictionary
Db: Remove testcase dependence of AbstractDbRelateTest