Back-End script for simple chating system.