Fixed necessary db flush

Page uses domain.id