fixed db.c::db_pread()