There were about 10 complaints and bug reports in the Help Desk that all said the same thing: paintings were no longer saving. Aside from laziness of checking previous questions before posting new ones, this deluge of the same question made me realize something: Paintings were no longer saving!
I looked through the file system and the code with no luck. Then i started logging database errors in the save process. "Duplicate entry 65535." Bingo! Last year when I made the app, I never dreamed that there would ever be 65535+ (2^16, zero-based) paintings! I just updated the database, so now we're good well into the millions.