creates database and tables if resultfetch.sql is not available.