fix sql script and change url size to 1024