fixed loading home page from db