DatabaseProvider + get_conf in database.

More stuctural changes.