added db functions for next play/dl & delete