Some data lost after restoring db from app/sql/*.sql

I had to restore a site from a folder after losing its container. I followed the instructions from the FAQs which worked fine. However, I noticed the database tables restored from app/sql did not contain the last state of the database. It also wasn’t the original state from when I created the site, though. What process keeps these *.sql files more or less updated?