Make conn and curs global
Next hop needs to be an address, not a name.
Make dbfile a config option