config and db