from ase.db import connect connection = connect('dos.db') for atoms in ...: # Do calculation ... dos = get_dos_at_fermi_level(...) connection.write(atoms, dos=dos)