Improve createTable and it's key-definitions
Key-definitions should not be part of field-definitions as there are a lot more possible configurations and it's hard to do that using the current method.
Key-definitions should not be part of field-definitions as there are a lot more possible configurations and it's hard to do that using the current method.