edited db loader