use config for db type