Respect unsigned fields when tables get converted to entities.

This is working on our mysql setup, however i have no idea of the consequences of this change when using other RDBMSes.
Merge pull request #802 from fasmide/patch-1

Respect unsigned fields when tables get converted to entities.