Added an index to the database