Implement getDeviceInfoFromDeviceRid method at DaoImpl.

Add Connection-argument to methods of Dao that is using JDBC.