Input method improved with loading and saving database.