Get and set config items from the database.