Stop rescan of library

I was changing scraper for Movie library and then accidentally said yes to re-scan the movies in the folder. This was wrong and I stopped the update of the library, but now it keeps starting over scanning all my movies which are already in the library. I do not want to re-scan all my movies as the posters and fanart I have picked then are reset.
How do I stop this? I guess there is a flag/datetime in the database (using MySQL) or in a file in the Kodi installation which determines this?

Thanks