Made SQL's log consistent with R

R log -> SQL ln
R log10 -> SQL log