Database used by system.db.* queries

Yes, if they are running within the project itself and the db connection is not specified within the function.