Immediately resize when doc.ready()
[FIX] Supports two types of local and external database management