Update repositories, add dtos, factor out DbConnector