Database.java now periodically prints stats to the log