adds andrews sql statments