Update README
Remove test DB code
Logging and debug improvements
Refactor state handling to a simple timer
Handle events, timeouts, and retries in main.cpp