fetch file length from db