Refactored a way of thinking on the method selectDB at DAOAbstract. Needs to be tested now.