now using webapi to serve data

now fetching data from db using webapi