Changed buildRepositoryFactory() method to stop receiving a parameter to set if the Database should be used or not

Created readConfiguration() method in order to simplify the the decision between using or not the database

1110634 Joao Ramos
1110690 Hugo Silva
1111224 Luis Ferreira

(Added the missing files)