added a method to import sql scripts instead of copying predefined
databases
fixed a possible resource leak