added salted pw, rdb logic, homepage logic