Started migration to PostgresSQL

Home page modified to work with Postgres. Intermediate PHP files
returning JSON developed.