added DBHelper class and save code button handler