index file added
database bugs fixed