Fix issue with not defined options (when using in cli)

and + small example structure for beginners (in mysql case) :)