A method to query a relational database stored on a data processing device comprising a microcontroller, said database comprising at least a table composed of columns and rows including data accessible via a cursor, comprising: before executing the cursor, declare a cursor by systematically selecting all columns in each table concerned by the cursors; execute the cursor; after execution, select co