Added code for display home page from datanbase