started implementing C api: Config and DB