Adding execute()s; Binding startDate only if it is defined.
Fixing typo.