結果 : create api to get data from database