create sql log model