Added code for showing home page data from DB