Do not execute SQL too early.
Follow the area database.