Make db a parameter for _execute().
Add query for form history in DBUtils.
Log form history.