updated database read with production statements