db and login

db script, login security sha1