added main sql script