Created CreatDB.java to write embedded database and got it working