Switching from mysql to mysqli extension, logging in a text file the Notes.php functions

Switching from mysql to mysqli extension (to avoid warnings in PHP 5.5 as it will deprecated in next future)