Make the script copy pastable in the sqlite console
Better handling of the error messages