Fix table creation SQL