minor fixes

created database.java class.