add index to database table