using config class in Elgg_Database
removed last $CONFIG dependency from Elgg_Database