Bugfix Attach when first query returns zero rows + Bugfix insert/update (empty string was converted to NULL)