Total count comes from database

Total count now populated from database.  Data base implementation
completed.