removed preprod from query all db script