sepearte db table proc into diff-dir