Add paint setting
Add the cache to the database