sql program saves full url