database and character file