Added better Virtual Table support.
Added Database ID to output.