config and db in lib