Fixes to the database.

The queryRowsIntoOutput was using the old static output methods.

The database update was using the old constant database name instead of the new Settings.