db loading improvement