use raw SQL for user queries for theme import script