sketched out tool semantics and SQL database structure for index.c