Chat now uses database instead of text files