RandDInternalRestApi: versions - refactored JdbcVersionDao and RndVersionDao

created a RowMapper class to remove duplication between mappers