BUG: archive_month - better and secure query
FEAT: sql injection prevention