Updated API to Database for Register