add config and db