randomized the routing process but used python so it will be slower. This needs to be changed to use either the djange extra function call or raw SQL queries