Added palette information to database
Added debug statements
Better palette page generation
A basic script to palettize the db