The filename of the sql file should be the same as the folder name. Is it same ?
Or you may use the following function in the install.php to Import your SQL file:
sdb_import($parameter1) - This function is used to execute the database queries.
* 1st Parameter (required) = String $parameter1 is the Absolute path of the file which contains the database queries to be executed.
For the config file not being parsed please check if the variables used in the [[ ]] tags are being defined in the $__settings array.