Changing DB format, adapt code to the new BD