modify exception on database.java