Sql scripts for prays