While the DB itself might be secure, the PHP or ASP files might have some exploits and as such, it's important to make sure that the script you're using is secure as if it's not, you'll probably get hacked especially if you're using an outdated script that's well-known (yes, even commercial ones).