Use DBI to interact with your database.
In reply to Re: Trouble with poll code by moritz in thread Trouble with poll code by jdlev