sqlite. Table not creating
<p>I'm trying to create table in the sqlite, but it is showing error that table cannot be created. I have a same code but the database and table name are different. the fields are same. Also one doubt. Can't i create the different table in the same database containing the same fields.</p>

<p>DbAdapter.java</p>

<p>the code is as below.</p>

<pre><code>public class DbAdapter {

    private static final String DATABASE_NAME="bible1";
    private static final String DATABASE_TABLE="test1";
    private static final int DATABASE_VERSION=1;

    public static final String KEY_ID="_id";
    public static final String UNITS="units";
    public static final String CHAPTERS="chapters";

    private static final String CREATE_DATABASE="create table test1 (_id integer primary key autoincrement, units text not null, chapters text not null);";

    private SQLiteHelper sqLiteHelper;
    private static SQLiteDatabase sqLiteDatabase;

    private Context context;

    //constructor

    public DbAdapter(Context c){
        context = c;
    }

    private static class SQLiteHelper extends SQLiteOpenHelper{

        public SQLiteHelper(Context context){

            super(context,DATABASE_NAME,null,DATABASE_VERSION);
        }
        @Override
        public void onCreate(SQLiteDatabase db) {
            // TODO Auto-generated method stub
            db.execSQL(CREATE_DATABASE);
            MakeUnits();
        }

        @Override
        public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
            // TODO Auto-generated method stub

        }

    }

    public DbAdapter open() throws SQLException{
        try{
        sqLiteHelper = new SQLiteHelper(context);
        sqLiteDatabase = sqLiteHelper.getWritableDatabase();
        }catch(NullPointerException ne){
            Log.e("error in creating the table", "bye");
        }

        return this;
    }

    public void close(){
        sqLiteHelper.close();
    }

    public static long MakeUnits()
    {
        ContentValues insert1 = new ContentValues();
        insert1.put(UNITS, "Unit1");
        insert1.put(CHAPTERS, "CHAPTER1");
        return sqLiteDatabase.insert(DATABASE_TABLE,null,insert1);
    }

    public Cursor fetchAllNotes(){
        return sqLiteDatabase.query(DATABASE_TABLE, new String[]{KEY_ID,UNITS,CHAPTERS}, null, null, null, null, null);
    }
}
</code></pre>

<p>MainActivity.java</p>

<pre><code>public class MainActivity extends ListActivity {

    private DbAdapter Database;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ListView listContent = (ListView) findViewById(android.R.id.list);

        Database= new DbAdapter(this);
        Database.open();

        Cursor c = Database.fetchAllNotes();
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}
</code></pre>

<p>It is giving error when the open() method is called. Couldn't figure it out.
in the logcat the error in the tag is that "error in creating the table"</p>
