It means it's reading the database files... apparently /var/cache/apt/pkgcache.bin and /var/cache/apt/srcpkgcache.bin, though /var/lib/apt/lists/ has info on the sources too, depending on the task it may read one/some/all.
Excerpt from apt-get's man page:
/var/cache/apt/archives/
Storage area for retrieved package files.
Configuration Item: Dir::Cache::Archives.
/var/cache/apt/archives/partial/
Storage area for package files in transit.
Configuration Item: Dir::Cache::Archives
(partial will be implicitly appended)
/var/lib/apt/lists/
Storage area for state information for each package resource specified in
sources.list(5)
Configuration Item: Dir::State::Lists.
The other man pages have more info (apt-cache seems particularly relevant), and the source code would be a wealth of info too.
The apt package doesn't depend on mysql or mariadb, so I'm pretty sure it doesn't use them to manage it's database.