Created indexes for database

Indexes projected by bjori (Hannes Magnusson). This change fixes performance problems.
Added jpgraph to gitignore
Fixed charts generation