Use bound parameters
Clarify column semantics
Pass election date as command line option; prevent running on byelections; tidy output