change database to dbType