Add code to connect to the database to get ranger data.