This function retrieves and processes grid statistics from Google Earth
Engine (GEE) based on the specified session task. The collected data is
stored in SQLite format (data/geelite.db), along with supplementary
files such as CLI files (cli/...), the state file
(state/state.json), and the log file (log/log.txt).
compile_db(task, grid, mode, verbose)[mandatory] (list) Session task that specifies the parameters for data collection.
[mandatory] (sf) Simple features object containing the geometries of the regions of interest.
[optional] (character) Mode of data extraction. Currently
supports "local" or "drive" (for larger exports via Google
Drive). Defaults to "local".
[mandatory] (logical) Display messages and progress status.