def _initDatabase(self):
queries = []<EOL>if len(self.application.config["<STR_LIT>"]["<STR_LIT>"]["<STR_LIT>"]) > <NUM_LIT:0>:<EOL><INDENT>for scriptFilePath in self.application.config["<STR_LIT>"]["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>sqlFile = open(scriptFilePath, "<STR_LIT:r>")<EOL>queriesInFile = self.extractFromSQLFile(sqlFile)<EOL>sqlFile.close()<EOL>queries.extend(queriesInFile)<EOL><DEDENT><DEDENT>def failCallback(error):<EOL><INDENT>errorMessage = str(error)<EOL>if isinstance(error, Failure):<EOL><INDENT>errorMessage = error.getErrorMessage()<EOL><DEDENT>self.log.error(<EOL>"<STR_LIT>",<EOL>errorMessage=errorMessage<EOL>)<EOL><DEDENT>def runCallback(transaction, queries):<EOL><INDENT>try:<EOL><INDENT>for query in queries:<EOL><INDENT>transaction.execute(query)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>failCallback(e)<EOL>return<EOL><DEDENT><DEDENT>interaction = self.runInteraction(runCallback, queries)<EOL>interaction.addErrback(failCallback)<EOL>
Initializes the database structure based on application configuration.

:return: <void>