Creates route and waypoint records in database.