db -> metadata