add client error handling
just update the db every 10 seconds to lower the load on sqlite files