Updated sonicflow.php to include a global dbconn.