working on client thread and database, but having issues with setClient member in database.