commented out non-working code from database testing