Refactor of DAOs classes, changed logout, removed some try catch blocks.