changes to allow skin to be stored in database