add list_atoms() functionality to db routines