convert to MVC architecture

Building the MVC architecture.  Adding the database schema in the
/schema folder.
updated index file slightly again
continuing changes with mvc architecture