Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion