write selected tickets into DBMY