fix a potential crash because point clouds got merged
do not forget to set the parameters
use a common DB object