database can be created without error, optimize DBAdapter.java