Fix double postgres link in bot.php
Fix some latest payout list issues.
Temporary fix to allow instant data to be vardiff compatible
Use persistant psql connections whereever possible.