I have started working on a collection of
functions for a DBHandler that will mean
all you need to do is write the SQL and
pass it t the function.
The function will then return an array
containing dictionaries for the result set
from the local database.
At the moment I am still refining the code
but as soon as it is done I will release it to
help anyone who may find it useful.