Added name field and unqiue constraint to Device model