functions model

it contains all the functions to fetch data from database