qdb base file I/O

yaya fixed errthang