* Re-adjusting api to get value from DB