Remove unneeded localStorage.clear()
"SELECT COUNT() as c" to save bytes and look nice