updated database to allow for multiple distances