Hi @paata,
the task definitions are not stored explicitly in the database.
But you can use the model API to query for tasks in a process model: https://docs.camunda.org/manual/7.11/user-guide/model-api/bpmn-model-api/read-a-model/.
Hope this helps, Ingo