database library on text file