Fix a template. Add where clause to DB exists check.
Merge branch 'master' of https://github.com/zeamprime/NeptuneDispatch