fix last certificate number
add few sql statement for a futur statistics module