added alerts, login and embedded db