fixed a faulty assumption that there is not already a session started
fixed 'RAQ SQL' support to include replacing {prefix} with $wpdb->prefix for sites with custom table prefixes