Adding _d to all generated queries.

Always setting _d=1. Otherwise, if you are logging events and waiting on cron to submit the events, the generated queries don't include _d and the events will be pegged at the time the cronjob executes, not when the event happens.