fix double database write on response create