Qual: Remove code to fix dynamically bad code.
Fix: Use correct syntax of date into sql requests (with quotes)
Fix: CRLF