Remove g.db from core.pages