fixed database complete. Added a view options to adding trainings