SQL: added function lastIndexOf
JSON: increased buffer to speed up import