DB loading optimized

Signed-off-by: loopasam <samuel.croset@gmail.com>