Updated api call
Updated db call
Updated js file
Updated js file