Added indexes to messages to improve performances (in prevision of a much bigger db)