Properly clears database and populates it