#18 sql scripts