Improve SQLite literal handling #552