bug fixing reports dates - changed sql date formatting, %e changed to %d