This version was a rewrite of the database accesss, now all SQL commands are executed inside a new class, sql_generator. This allows us to escape all of the data submitted to the dabase server. Each method returns the result set.
We also better implemented the initial design requirement that all updates to the database be accomplished by stored database functions.