Updated db connection. Not great security but not a big deal for now. Also added login logic to toolbar