fixed database fetch parameters in a couple more places