added count and tableExists
fixed Security hole
made initialisation more robust
language