Fixing column length
Fix table and view creation

This was obviously not tested before committing.