added route to get all data as sql