We need to delete CRDT columns from a CreateTable statement because the
sqlite_crdt library is going to insert them again.
But we need to have them in our definitions to make other logic work correctly
Prepare the Select statement to be in line with the CRDT requirements
if queryDeleted is set to false then we query only regular records
if it is set to true we query all the records in database.
This is useful in migrations, or auditing