A PHP component to lazily run SQL queries