Fixing problems in DAO. There is something wrong on the mysqli code that kills script execution, in both web and test environments