It keeps the queries it’s received in memory, this is done to prevent bad guys landing on your box from seeing what queries you’re running. The DB is owned by SYSTEM as this is considered equivalent to root on posix systems, and the DB contains the results of your queries, so non-privileged users shouldn’t be capable of modifying the DB