Setup registration and saving of databae url