added loader for when requesting db data