populate database from api and show on graph