refactoring parameter name
Adding setter for database and table