Fixed some bugs with Hconfig calling object "sql" instead of $sql_obj