refactored to remote db
source moved due to refactor to remote db and split into three trees
mask for pid files.