Updated Client and Database connector.
The client now handles already processed and done states.