update database with new api