Added new $crud wrapper and session management.

shouldn't it be path === 'trainers'