Database up and working

All parts working. Will return to refactor when done with other assignments.