1. A computer-implemented method comprising: receiving at least one request for accessing information included in a database; reducing a latency between a beginning and an end of a task, the task corresponding to the at least one request, that is to be performed between a first system and a second system, wherein the second system includes at least two servers, a performance of the task involving at least two database actions, the reducing of the latency including: forming a package to include the at least two database actions and logic executable at the second system, the logic, when executed, providing instructions to the second system on how the handling of a second database action should proceed based on the output resulting from the handling of a first database action, wherein forming the package includes generating executable code that enables the second system to perform the at least two database actions based on a determination of whether certain resources are available, and on which servers, when the database actions are carried out, and wherein the formed package includes the executable code, sending the package including information about the at least two database actions and the code in a single communication over a network from the first system to the second system; and receiving one or more corresponding results from the second system, wherein the first database action was performed by a first server of the at least two servers, and the second database action was performed by a second server of the at least two servers, based on a determination of which resources were available at the first server and the second server when the results were generated.