Create sql statments