Get total number of records
db1cursor.execute("""SELECT count(*) FROM tbl_my_table
""")
row = db1cursor.fetchone()
if row == None:
return(None)
total_records = row[0]
#print("Total captured images: ", total_records)
return(total_records)
