tab removal
use globals in a way stackoverflow says not to
switch to sqlite