updated database script based on new login