Add index to Messages Controller