fixes bad address used in index views
fixed bug for odd number of categoreis
current state of database