added R files with DB and DP generation commands