Added method to read file data
Added method to get file length
Fixed typo
Refactored db methods
Fixed comment adding