Refactored class constructor: now accepts user,password,port,host and database options