added current row to history functions db call