Database access should be done in parallel with main execution, to prevent db operations from lagging the actual communications.