Session timeout fix - included ping script
DB script fix