Database are in most cases faster and more reliable than flat files. Look at Database vs files article for more details