Dear Simon,
When a hacker breaks into a server, it doesnt matter where the database login script is...u see
i wud advise u store the login name and password in a file that you read in all your scripts....this will save u the effort to change files when u change the database login and password...also the login name and password will be at one place....
i hope i have solved u r queries...