I’m trying to implement custom check through Actions which requires performing DB query.
In Rules there is a global configuration object which stores some values.
Is there something similar available for Actions? Or should I go back to Rules and implement my logic in there?
Yes, this can be accomplished with Auth0 Actions. To do so, you will need to use the events.secrets object to save your Key, Value pairs. See below for an example.