new feature : splited msg pages
added constant for nb msg per pages
fixed bug about sql query, nb of msg