updates to add functionality and tests for themes including database migrations