Fixes on multiple files retrival from server

1. Refine packet size send to a client
2. Fix on DB data query, now it's faster.