refactoring; insert phrase, theme; select phrase sql cmds