using sql on prod