started on getAllNodes in database.java