Using a more widely available function to get error from SQLite
Variable dumping has been removed from SQL