Bug fix for column length when creating database tables