Database updated and setURL() added