Following is the code to create db and create table. I don\'t know what\'s the problem with my code, that the all the data in database is removed after restarting the applicatio