adding InsertOrReplaceAll method. fixing table migration detection. add ...

...sql trace switch. add droptableasync for Type argument. add InsertOrReplaceAsync method. add DeleteAllAsync method.

Did some helper methods and most importantly fixed the Migration detection by using an SQL script to find out if the table exists. This works 100% now. The old detection method by looking at the create table return value did not work in some cases.