change visit count function in /admin/ to use SQL directly and add some bindValues to PDO queries