python & postgresql: reliably check for updates in a specific table python & postgresql: reliably check for updates in a specific table multithreading multithreading