Changed table and connection to protected