Fix develop SQL