Added device creation and optimized JPA performance by using sequence generator