add database and reregistration