Moved finding target specific files and database info to separate methods.