Separate the execution of sql scripts

the pervious version is implemented with the get content from file join
with their execution