apply to db when each server process is done