Lets say I run a medical facility and want a website where my users/patients can lookup their private records. What would be the best solution
While josh poley's and Bala Subramanyam's are good answers, I would add that, if the core value of your business is security you should:
Hackers and developers will be your main asset, and they should know that. Indeed we can list most common security practices here, but applying our suggestions you won't make your system truly secure, just funny to hack.
When security matters, great talents, passion and competence are your only protection.