Fix create tables script