working API to go along with update database