db.getLastError(): added default value and fixed ignoring of it