DB update for compatibility with gallery functionality.