Fixed treasure generation (distances). Fixed minor error in databaseHelper onUpdate