changed openings page to index
added secret_token and changed over to postgres
moved body to application level