[FIX] Fixed problems with too short database entries.
[FIX] Fixed a read length problem.