improved error reporting in mysql_db
fix .gitignore
fixed untracked files.