Index replacement and database login update !