Encode url
Reset db sequences