Server: Minimal sqlite3 integration; some socket events handled.