changed database schema

added a few more tables, see setupdb.php