Added table column check using PRAGMA

Finally got this issue resolved...I hope.   This is kind of a quick fix.
I will probably add  a versioning system to the database tables in a
future update.