rationalised Database.h to use core sql functions (query(), insert(), update() and select())
ready for separating superclass Database from subclasses implemented by individual plugins
UNTESTED