Bugs fixing

It's help when we have very long data in table. Because when INSERT more than 1MB we receive error "not enough memory"
Merge pull request #5 from Dima22/patch-2

Bugs fixing