Rewrite adjacency lists with new format in solvation groups

Unfortunately saveDatabse() reordered the entries.