Added db, changed registration templates