use getter and setter for database connector