Defined write_sql_credentials_file method and invoked it in many places, rather than open, write and close
Defined write_sql_credentials_file method and invoked it in many places, rather than open, write and close

git-svn-id: 602c6194e8983b3dcdf197e7dbd4d39b283cef39@17132 4e558342-562e-0410-864c-e07659590f8c

efajardo/osg-test,efajardo/osg-test