Added CLEAR DATABASE function for testing. Minor comment edits.