edit database login code