(cleanup) Change queries and images work to Azure database.