move db stuff to iatidq
move db stuff to iatidq
break up long lines
fix typo