fixed database/publishing issue