Why are the details of my todo not saving?

The issue was in add_action('save_posts', 'mtl_todos_save');, instead it should be: add_action('save_post', 'mtl_todos_save');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)