1) modified query in ccndb.java to
a) create table only when not exists
b) executeUpdate() on PreparedStatement to save the device registration details in db