Constructor and class changes

Added parameters to pass host and database name.