database improved

unique email and unlock key added