db work, and http work