implemented as class

Moved all functions to a class called SQLite and added classes
SQLiteTable and SQLiteField.