#14 added a number of indexes to tables
updated database script, closes #14