Added logic to do database saves in the websockets handler.  Also
saves in general.  More qualified libraries.