DBConfig::get helper; permalink based on ID

1) DBConfig::get is a helper function that says how to connect to a DB.
2) listing_permalink_controller now takes an ID s a get parameter.
Use DBConfig::get helper in more places.