Committing A LOT of fixes to SQLite code, and modifying styling use to avoid messing up alert dialogs
Merging  DavidH's and SadekJab