fixed logged-out user viewing home page, and changed database to aws