1. A method, executed by a database management system, the method comprising: storing a first stored procedure in a first database management module; storing a second stored procedure in a second database management module; receiving by the first database management module a request to run a computational task with the first stored procedure; receiving a request to perform the computational task and in response thereto causing a first query optimizer in the first database management module to automatically compute a first query execution plan for the first stored procedure; identifying, based at least in part on the first query execution plan, all first data containers on the first database management module that provide input data for the computational task to provide identified first data containers; identifying a list of names of all second data containers mapped to the identified first data containers; computing a second query execution plan for the second stored procedure, by a second query optimizer in the second database management module, based at least in part on the first query execution plan and the list of names; and performing the second stored procedure in accordance with the second query execution plan.