Refactoring: new StockRepository with a bunch changes, as follows:
- New generic repository interface
- New abstract entity class
- Repository maintain database records by entity always
- Unit testes over insert, select, selectAll and update stock records.