Select SQL statement to list all online devices and their owners added