fix fixed value error; fetch data from database instead