adding avg speed to db