Why have this line, especially since you use the db in the next then() ?