Fix some shit in this f***ing SQL script