output ke file database.txt, blm fix tapi