add a toString()

added a toString() method in database.java