Changed db to use unit vectors plus speed