added indexing to mysql